﻿using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RoboAssembleX.Application.Robot
{
    public class RoboModel: BindableBase
    {

        //上电
        private bool powerOn; public bool PowerOn { get { return powerOn; } set { powerOn = value; RaisePropertyChanged(); } }
        //使能
        private bool rebotEnable; public bool RebotEnable { get { return rebotEnable; } set { rebotEnable = value; RaisePropertyChanged(); } }
        //软限位
        private bool softLimit; public bool SoftLimit { get { return softLimit; } set { softLimit = value; RaisePropertyChanged(); } }
        //到达目标
        private bool inPos; public bool InPos { get { return inPos; } set { inPos = value; RaisePropertyChanged(); } }
        //急停
        private bool emergencyStop; public bool EmergencyStop { get { return emergencyStop; } set { emergencyStop = value; RaisePropertyChanged(); } }
        //碰撞
        private bool collisionStop; public bool CollisionStop { get { return collisionStop; } set { collisionStop = value; RaisePropertyChanged(); } }
        //程序状态
        private string programState;public string ProgramState { get { return programState; } set { programState = value; RaisePropertyChanged(); } }
        //程序名称
        public string programName; public string ProgramName { get { return programName; } set { programName = value; RaisePropertyChanged(); } }

        private bool dO1; public bool DO1 { get { return dO1; } set { dO1 = value; RaisePropertyChanged(); } }
        private bool dO2; public bool DO2 { get { return dO2; } set { dO2 = value; RaisePropertyChanged(); } }
        private bool dO3; public bool DO3 { get { return dO3; } set { dO3 = value; RaisePropertyChanged(); } }
        private bool dO4; public bool DO4 { get { return dO4; } set { dO4 = value; RaisePropertyChanged(); } }
        private bool dO5; public bool DO5 { get { return dO5; } set { dO5 = value; RaisePropertyChanged(); } }
        private bool dO6; public bool DO6 { get { return dO6; } set { dO6 = value; RaisePropertyChanged(); } }
        private bool dO7; public bool DO7 { get { return dO7; } set { dO7 = value; RaisePropertyChanged(); } }
        private bool dO8; public bool DO8 { get { return dO8; } set { dO8 = value; RaisePropertyChanged(); } }
        private bool dO9; public bool DO9 { get { return dO9; } set { dO9 = value; RaisePropertyChanged(); } }
        private bool dO10; public bool DO10 { get { return dO10; } set { dO10 = value; RaisePropertyChanged(); } }
        private bool dO11; public bool DO11 { get { return dO11; } set { dO11 = value; RaisePropertyChanged(); } }
        private bool dO12; public bool DO12 { get { return dO12; } set { dO12 = value; RaisePropertyChanged(); } }

        private bool readDataFlag; public bool ReadDataFlag { get => readDataFlag; set { readDataFlag = value; RaisePropertyChanged(); } }
    }
}
